“+” is the addition operator, also called the plus sign, or sometimes (in the vulgar tabloids) simply the “plus”. It causes addition to be executed.
2 + 1 = 3
“-” is the subtraction operator, popularly known as the minus sign.
2 - 1 = 1
“*” is the multiplication operator.
2 * 2 = 4
“/” is the division operator. The result can include a decimal fraction.
4 / 2 = 2
5 / 2 = 2.5
“div” is the integer-division operator. Division is performed and the result is truncated, i.e., the remainder, if any, is thrown away.
4 div 2 = 2
5 div 2 = 2
“mod” is the modulo operator, returning the remainder of a division operation. Examples:
5 mod 2 = 1
(1 is the remainder of 5/2)
4 mod 2 = 0
(4 / 2 leaves no remainder)
“=” is the equals sign, used in boolean expressions, i.e. expressions that are either true or false.
“1 = 1” is true
“1 = 2” is false
“<>” is the unequal sign.
“1 <> 1” is false
“1 <> 2” is true
“>” is the greater-than sign.
“1 > 1” is false
“2 > 1” is true
“<” is the less-than sign.
“1 < 1” is false
“1 < 2” is true
“>=” is the greater-than-or-equal-to sign
“1 >= 1” is true
“1 >= 2” is false
“<=” is the less-than-or-equal-to sign
“1 <= 1” is true
“2 <= 1” is false
“and” returns true if both of two boolean expressions it joins are true, otherwise false.
“(1=1) and (2=2)” is true
“(1=1) and (2=1)” is false
“or” returns true if either of two boolean expressions it joins are true, false if both are false.
“(1=1) or (1=2)” is true
“(1=2) or (2=3)” is false
“not” returns the opposite of a boolean result.